package cc.eddic.practice.spring.dto;


import cc.eddic.practice.spring.domain.Exam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExamAddRequest {
    private String name;

    private int timeLimit;


    public Exam as(){
        return new Exam(this.name,this.timeLimit);
    }
}